<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>webgl自定义纹理</title>


</head>

<body >
    <div id="grid-container">
        <div class="container">
            <canvas></canvas>
        </div>
        <div class="container">
            <button>点击</button>
        </div>
    </div>
</body>

<style>
    #grid-container {
        display: flex;
        width: 100vw;
        height: 100vh;
        flex-flow: column wrap;
    }
    
    .container {
        flex-grow: 1;
        border: 1px solid red
        ;
    }
</style>

</html>